package cn.stu.framework.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 用户详细信息vo
 *
 * @author 郑志豪
 * @date 2023/10/31
 */
@Data
public class UsersDetailVo implements Serializable {
    private Long userDetailId;
    @NotBlank(message = "登录名为空")
    private String acc;

    private String pwd;

    private Long userId;
    @NotBlank(message = "姓名为空")
    private String name;
    @NotBlank(message = "电话为空")
    private String tel;
    @NotBlank(message = "性别为空")
    private String sex;

    @NotBlank(message = "邮件为空")
    private String email;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date hireTime;

    private String hireTimes;

    private String userImage;

    private String roleName;

    private String deptName;

    @NotNull(message = "角色为空")
    private Long roleId;

    private Long deptId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    private Long updateId;

    private Long createId;

    private Integer isDisable;

}
